package com.bean;

import javafx.beans.property.BooleanProperty;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.scene.control.Button;

import java.time.LocalDate;
import java.time.LocalTime;

import com.controller.MainInterface;
public class Prisoner {


    public Prisoner() {

    }

    public String getPno() {
        return pno;
    }

    public void setPno(String pno) {
        this.pno = pno;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public LocalDate getBirthdayTime() {
        return birthdayTime;
    }

    public void setBirthdayTime(LocalDate birthdayTime) {
        this.birthdayTime = birthdayTime;
    }

    public String getCrime() {
        return crime;
    }

    public void setCrime(String crime) {
        this.crime = crime;
    }

    public LocalDate getIntime() {
        return intime;
    }

    public void setIntime(LocalDate intime) {
        this.intime = intime;
    }

    public LocalDate getOuttime() {
        return outtime;
    }

    public void setOuttime(LocalDate outtime) {
        this.outtime = outtime;
    }

    public String getPostion() {
        return postion;
    }

    public void setPostion(String postion) {
        this.postion = postion;
    }

    public Prisoner(String pno, String pname,
                    String sex, String idcard,
                    LocalDate birthdayTime, String crime,
                    LocalDate intime, LocalDate outtime, String postion) {
        this.pno = pno;
        this.pname = pname;
        this.sex = sex;
        this.idcard = idcard;
        this.birthdayTime = birthdayTime;
        this.crime = crime;
        this.intime = intime;
        this.outtime = outtime;
        this.postion = postion;


    }


    private String pno;
    private String pname;
    private String sex;
    private String idcard;
    private LocalDate birthdayTime;
    private String crime;
    private LocalDate intime;
    private LocalDate outtime;
    private String postion;

    private BooleanProperty selected = new SimpleBooleanProperty(false);

    public boolean isSelected() {
        return selected.get();
    }

    public void setSelected(boolean selected) {
        this.selected.set(selected);
    }

    public BooleanProperty selectedProperty() {
        return selected;
    }





    public static void main(String[] args){

    }
}
